<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="userList.title" />
    </title>
    <meta name="heading" content="<fmt:message key='userList.heading'/>" />
    <meta name="menu" content="AdminMenu" />
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/userform.html?method=Add&from=list"/>'"
        value="<fmt:message key="button.add"/>" />

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'" value="<fmt:message key="button.done"/>" />
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<display:table name="userList" cellspacing="0" cellpadding="0" requestURI="" defaultsort="1" id="users" pagesize="25" class="table" export="false">
    <display:column property="workId" escapeXml="false" sortable="true" titleKey="user.workId" />
    <display:column property="username" escapeXml="false" sortable="true" titleKey="user.username" url="/userform.html?from=list" paramId="id" paramProperty="id" />
    <display:column property="fullName" escapeXml="false" sortable="true" titleKey="activeUsers.fullName" />
    <display:column property="email" escapeXml="false" sortable="true" titleKey="user.email" />
    <%-- 
    <display:column property="appUser.fullName" escapeXml="false" sortable="true" titleKey="user.appUser.id" />
    
    <display:column sortProperty="enabled" sortable="true" titleKey="user.enabled" >
        <input type="checkbox" disabled="disabled" <c:if test="${users.enabled}">checked="checked"</c:if> />
    </display:column>
    --%>
    <display:setProperty name="paging.banner.item_name" value="" />
    <display:setProperty name="paging.banner.items_name" value="" />
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
highlightTableRows("users");
</script>
